﻿using System;
using System.Linq;
using System.Text;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Dtos
{
    ///<summary>
    /// 维修工单列表
    ///</summary>
    [ExcelExporter(Name = "维修工单列表")]
    public class WeiXiuGongDanListExportDto
    {
        public WeiXiuGongDanListExportDto()
        {
        }

        /// <summary>
        /// 设备名称
        /// </summary>     
        [ExporterHeader(DisplayName = "指派给")]
        public string Names { get; set; }

        /// <summary>
        /// 维修单号
        /// </summary>     
        [ExporterHeader(DisplayName = "维修单号")]
        public string Rpnumber { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>     
        [ExporterHeader(DisplayName = "设备名称")]
        public string Dvname { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>     
        [ExporterHeader(DisplayName = "设备编号")]
        public string Number { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>     
        [ExporterHeader(DisplayName = "规格型号")]
        public string Specification { get; set; }

        /// <summary>
        /// 故障部位
        /// </summary>     
        [ExporterHeader(DisplayName = "故障部位")]
        public string Position { get; set; }

        /// <summary>
        /// 故障等级
        /// </summary>     
        [ExporterHeader(DisplayName = "故障等级")]
        public string Level { get; set; }

        /// <summary>
        /// Desc:故障时间
        /// </summary>     
        [ExporterHeader(DisplayName = "故障时间", Format = "yyyy-mm-DD HH:mm:ss")]
        public DateTime TroubleTime { get; set; }

        /// <summary>
        /// 故障描述
        /// </summary>     
        [ExporterHeader(DisplayName = "故障描述")]
        public string Description { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>     
        [ExporterHeader(DisplayName = "开始时间", Format = "yyyy-mm-DD HH:mm:ss")]
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>     
        [ExporterHeader(DisplayName = "结束时间", Format = "yyyy-mm-DD HH:mm:ss")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// Desc:维修工时
        /// </summary>     
        [ExporterHeader(DisplayName = "维修工时")]
        public string ManHour { get; set; }

        /// <summary>
        /// Desc:维修结果
        /// </summary>     
        [ExporterHeader(DisplayName = "维修结果")]
        public string Result { get; set; }

        /// <summary>
        /// Desc:排故流程
        /// </summary>     
        [ExporterHeader(DisplayName = "排故流程")]
        public string Procedure { get; set; }

        /// <summary>
        /// Desc:设备状态
        /// </summary>     
        [ExporterHeader(DisplayName = "工单状态")]
        public string Status { get; set; }

    }
}
